package com.ooqn.util;

import java.awt.image.BufferedImage;
import java.io.IOException;
import java.io.InputStream;
import javax.imageio.ImageIO;

/**
 * 图片工具
 */
public class ImgUtil {

	public static boolean isNotImage(InputStream inputStream) {
		try {
			BufferedImage read = ImageIO.read(inputStream);
			return read == null;
		} catch (IOException e) {
			return true;
		}
	}

	public static void main(String[] args) {
		System.out.println("skdljfklasjdklfasdf");
	}
}
